<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Venue>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Venues"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <script type="text/javascript">
    $(function() {
        $("#DateFounded").datepicker();
        $("#DateFounded").datepicker('option', { dateFormat: "yy/mm/dd" });
    });
  </script>

  <h2>
    Create</h2>
  <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
  <% using(Html.BeginForm()) {%>
  <fieldset>
    <legend>Fields</legend>
    <p>
      <label for="Name">
        Name:</label>
      <%= Html.TextBox("Name") %>
      <%= Html.ValidationMessage("Name", "*") %>
    </p>
    <p>
      <label for="Longditude">
        Longditude:</label>
      <%= Html.TextBox("Longditude") %>
      <%= Html.ValidationMessage("Longditude", "*") %>
    </p>
    <p>
      <label for="Latitude">
        Latitude:</label>
      <%= Html.TextBox("Latitude") %>
      <%= Html.ValidationMessage("Latitude", "*") %>
    </p>
    <p>
      <label for="Description">
        Description:</label>
      <%= Html.TextBox("Description") %>
      <%= Html.ValidationMessage("Description", "*") %>
    </p>
    <p>
      <label for="Website">
        Website:</label>
      <%= Html.TextBox("Website") %>
      <%= Html.ValidationMessage("Website", "*") %>
    </p>
    <p>
      <label for="DateFounded">
        DateFounded:</label>
      <%= Html.TextBox("DateFounded") %>
      <%= Html.ValidationMessage("DateFounded", "*") %>
    </p>
    <p>
      <input type="submit" value="Create" />
    </p>
  </fieldset>
  <% } %>
  <div>
    <%=Html.ActionLink("Back to List", "Index") %>
  </div>
</asp:Content>
